home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / renderTests / alphaTransparency.wrl next >
Text File  |  2000-05-30  |  2KB  |  78 lines

  1. #VRML V2.0 utf8
  2.  
  3. DEF Square1 Transform {
  4.   children    [
  5.     Shape {
  6.       appearance    Appearance {
  7.     material    Material {
  8.     }
  9.  
  10.     texture    ImageTexture {
  11.       repeatS    TRUE
  12.       repeatT    TRUE
  13.       url    "tree.jpg"      hasAlphaTexture TRUE
  14.     }
  15.  
  16.       }
  17.  
  18.       geometry    DEF _1 IndexedFaceSet {
  19.     coord    Coordinate {
  20.       point    [ -1 -1 1.91846e-013,
  21.             -1 1 -6.82122e-013,
  22.             1 1 -6.82122e-013,
  23.             1 -1 1.91846e-013 ]
  24.     }
  25.  
  26.     coordIndex [ 0, 1, 2, -1, 2, 3, 0, -1]
  27.     texCoord    TextureCoordinate {
  28.       point    [ 0 0,
  29.             0 1,
  30.             1 1,
  31.             1.00106 0.0040717 ]
  32.     }
  33.  
  34.     solid    FALSE
  35.     normalIndex    [  ]
  36.       }
  37.  
  38.     }
  39.     DEF UnnamedAnimation0 Group {
  40.       children    [
  41.     DEF UnnamedAnimation0Time TimeSensor {
  42.       cycleInterval    2
  43.       loop    TRUE
  44.     }
  45.     DEF Square1RotationInterp OrientationInterpolator {
  46.       key    [ 0, 0.25, 0.5, 0.75, 1 ]
  47.       keyValue    [ 0 1 0  0,
  48.             0 1 0  .5,            0 1 0   0,            0 1 0  -.5,             0 1 0   0 ]
  49.     }
  50.     DEF Square1PositionInterp PositionInterpolator {
  51.       key    [ 0, 0.25, 0.5, 0.75, 1 ]
  52.       keyValue    [             0 0 0, 
  53.              -.5 0 -.3, 
  54.             -0 0 -.6
  55.             .5 0 .3, 
  56.             0 0 0 ]
  57.     }
  58.       ]
  59.     }
  60.   ]
  61.   translation    -0.278074 0 0.29099
  62.   rotation    0 1 0 0
  63.   center    0 0 -3.01981e-013
  64. }
  65. DEF VP Viewpoint {
  66.   position 0 0 10
  67.   fieldOfView    0.785398
  68.   description    " "
  69. }
  70. DEF _4 TimeSensor {
  71.   enabled    TRUE
  72.   loop    TRUE
  73. }
  74. ROUTE UnnamedAnimation0Time.fraction_changed TO Square1RotationInterp.set_fraction
  75. ROUTE Square1RotationInterp.value_changed TO Square1.set_rotation
  76. ROUTE UnnamedAnimation0Time.fraction_changed TO Square1PositionInterp.set_fraction
  77. ROUTE Square1PositionInterp.value_changed TO Square1.set_translation
  78.